package com.timesheet.server.dao;

import com.timesheet.server.common.models.LeaveDTO;
import com.timesheet.server.core.mapper.Mapper3;
import com.timesheet.server.core.models.LeaveRecord;
import com.timesheet.server.core.util.PMManager;

public class LeaveDao {
	
	public boolean saveLeave(LeaveDTO leaveDTO) throws Exception{
		LeaveRecord map = Mapper3.map(new LeaveRecord(), leaveDTO);
		return PMManager.persist(map);		
		
	}

}
